/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ function(module, exports, __webpack_require__) {

	/**
	 * Created by Administrator on 2017/3/14.
	 */
	var Progress = __webpack_require__(33);
	var Pagination = __webpack_require__(26);
	var RealName = __webpack_require__(1);
	var AccountMes = __webpack_require__(34);
	var FinanceRecord = __webpack_require__(35);
	var Root = React.createClass({displayName: "Root",
	    getInitialState: function () {
	      return{
	          realName:PageDM.realNameInfo.value,
	          investRecord: PageDM.investRecord.value,
	          accountInvest: PageDM.accountInvest.value,
	          pageVal: PageDM.pagination.value
	      }
	    },
	    componentDidMount: function(){

	        var _this = this;
	        UEventHub.on(PageDM.investRecord.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            _this.updateInvestRecordHandler(v);
	        });
	        UEventHub.on(PageDM.accountInvest.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            var val = v;
	            _this.updateAccountInvestHandler(val);
	        });
	        //个人实名信息
	        UEventHub.on(PageDM.realNameInfo.dmbind + UI_EVENT_CONST.SET_UDM_VALUE_EVENT, function(v){
	            _this.updateRealNameInfoHandler(v);
	        });
	        PageDM.pagination.setValue(PageDM.pagination.value);

	        UEventHub.emit("pageLoad","hello world!");
	    },
	    searchChange: function (e) {

	    },
	    updateRealNameInfoHandler: function (v) {
	        this.setState({
	            realName: v
	        })
	    },
	    updateAccountInvestHandler: function (v) {
	        this.setState({
	            accountInvest: v
	        })
	    },
	    pageClick:function (v) {
	        PageDM.pagination.setValue({curPage:v});
	        PageDM.pagination.onClick(v);
	    },
	    updateInvestRecordHandler: function (v) {
	        this.setState({
	            investRecord:v
	        })
	    },
	    render: function () {
	        var _this = this;
	        var PageDM = window.PageDM;
	        var investRecordDom = [];
	        if(this.state.investRecord.list.length > 0){
	            investRecordDom.push(React.createElement(FinanceRecord, {data: this.state.investRecord.list}))
	        }else {
	            if(this.state.investRecord.noPrecedent == -1){
	                investRecordDom.push('')
	            }else{
	                investRecordDom.push(
	                    React.createElement("div", {className: "nodata"}, 
	                        React.createElement("i", {className: "bg-2"}), "暂无待还项目"
	                    )
	                );
	            }

	        }
	        return (
	            React.createElement("div", null, 
	                React.createElement("div", {className: "mod-account container"}, 
	                    React.createElement("div", {className: "sub-nav", ref: "realName"}, 
	                        React.createElement(RealName, {data: this.state.realName})
	                    ), 
	                    React.createElement("div", {className: "account my-account"}, 
	                        React.createElement("div", {className: "count", ref: "accountInvest"}, 
	                            React.createElement(AccountMes, React.__spread({},  this.state.accountInvest))
	                        ), 
	                        React.createElement("div", {className: "investment-record financing "}, 
	                            React.createElement("div", {className: "title"}, React.createElement("b", null), "最近待还项目", React.createElement("b", null)), 
	                            React.createElement("div", {ref: "investRecord"}, investRecordDom)
	                        )
	                    ), 
	                    React.createElement("div", {className: "clear"})
	                )
	                /*<Pagination  pageVal={_this.state.pageVal} onClick={this.pageClick}></Pagination>*/

	            )
	        )
	    }
	});
	ReactDOM.render(React.createElement(Root, null), document.getElementById('giraffe'));

/***/ },

/***/ 1:
/***/ function(module, exports, __webpack_require__) {

	/*
	 * Created by Administrator on 2017/3/31.
	 */

	var Tooltip = __webpack_require__(2);
	var RealName = React.createClass({displayName: "RealName",
	    getDefaultProps: function() {
	        return{
	            data:{
	                IsNew:0, //是否有新消息
	                AccType:0,
	                Mobile:"",  //手机
	                IsBindMobile:"",//是否绑定手机
	                BindMobileUrl:"",//绑定手机链接
	                IsBindIDCard:"",//是否验证身份
	                BindIDCardUrl:"",//验证身份链接
	                IsBindBankCard:"",//是否绑卡
	                BindBankCardUrl:"",//绑卡链接
	                Current:"InvestAccount",  //当前选中菜单
	                InvestAccountUrl:"",//账户总览链接
	                InvestListUrl:"",//投资记录链接
	                MyBankCardUrl:"",//我的银行卡链接
	                InvestInfoUrl:"",//投资个人信息
	                InvestMessageUrl:"",//投资消息中心
	                FinanceAccountUrl:"",//账户总览链接
	                FinanceListUrl:"",//融资记录链接
	                FinanceAccountInfoUrl:"",//融资账号信息
	                FinanceMessageUrl:""//融资消息中心
	            }
	        }
	    },
	    getInitialState:function () {
	        return {
	            data:this.props.data
	        }
	    },
	    componentDidMount:function(){
	    },
	    render: function () {
	        return (
	            React.createElement("div", null, 
	                React.createElement("div", {className: "info", ref: "realName"}, 
	                        React.createElement("div", {className: "face"}, React.createElement("img", {src: "../content/images/account/face.jpg", alt: ""}), this.state.data.Mobile), 
	                    this.state.data.AccType ? "" :
	                        React.createElement("div", {className: "bind"}, 
	                            React.createElement(Tooltip, {title: this.state.data.IsBindMobile ? "已绑定手机" : "未绑定手机"}, React.createElement("a", {href: this.state.data.BindMobileUrl ? this.state.data.BindMobileUrl : 'javascript:;'}, React.createElement("i", {className: "iconfont icon-phone1 tooltip "+ (this.state.data.IsBindMobile ? "ok" : "")}))), 
	                            React.createElement(Tooltip, {title: this.state.data.IsBindIDCard ? "已绑定身份证" : "未绑定身份证"}, React.createElement("a", {href: this.state.data.BindIDCardUrl ? this.state.data.BindIDCardUrl : 'javascript:;'}, React.createElement("i", {className: "iconfont icon-idcard2 tooltip "+ (this.state.data.IsBindIDCard ? "ok" : "")}))), 
	                            React.createElement(Tooltip, {title: this.state.data.IsBindBankCard ? "已绑定银行卡" : "未绑定银行卡"}, React.createElement("a", {href: this.state.data.BindBankCardUrl ? this.state.data.BindBankCardUrl : 'javascript:;'}, React.createElement("i", {className: "iconfont icon-bankcard tooltip "+ (this.state.data.IsBindBankCard ? "ok" : "")})))
	                        )
	                    
	                ), 
	                React.createElement("div", {className: "nav"}, 
	                    this.state.data.AccType ? React.createElement("ul", null, 
	                            React.createElement("li", null, React.createElement("a", {href: this.state.data.FinanceAccountUrl, className: this.state.data.Current == "FinanceAccount" ? "current": ""}, React.createElement("i", {className: "icon-loan iconfont"}), "账户总览")), 
	                            React.createElement("li", null, React.createElement("a", {href: this.state.data.FinanceListUrl, className: this.state.data.Current == "FinanceList" ? "current": ""}, React.createElement("i", {className: "icon-card iconfont"}), "融资记录")), 
	                            React.createElement("li", null, React.createElement("a", {href: this.state.data.FinanceAccountInfoUrl, className: this.state.data.Current == "FinanceAccountInfo" ? "current": ""}, React.createElement("i", {className: "icon-personal iconfont"}), "账号信息")), 
	                            React.createElement("li", null, React.createElement("a", {href: this.state.data.FinanceMessageUrl, className: this.state.data.Current == "FinanceMessage" ? "current": ""}, React.createElement("i", {className: "icon-news iconfont"}), "消息中心", this.state.data.IsNew ? React.createElement("b", null) : '')), " ")
	                          : React.createElement("ul", null, React.createElement("li", null, React.createElement("a", {href: this.state.data.InvestAccountUrl, className: this.state.data.Current == "InvestAccount" ? "current": ""}, " ", React.createElement("i", {className: "icon-loan iconfont"}), "账户总览")), 
	                        React.createElement("li", null, React.createElement("a", {href: this.state.data.InvestListUrl, className: this.state.data.Current == "InvestList" ? "current": ""}, " ", React.createElement("i", {className: "icon-record iconfont"}), "投资记录")), 
	                        React.createElement("li", null, React.createElement("a", {href: this.state.data.FinanceListUrl, className: this.state.data.Current == "FinanceList" ? "current": ""}, React.createElement("i", {className: "icon-card iconfont"}), "融资记录")), 
	                        React.createElement("li", null, React.createElement("a", {href: this.state.data.MyBankCardUrl, className: this.state.data.Current == "MyBankCard" ? "current": ""}, " ", React.createElement("i", {className: "icon-card iconfont"}), "我的银行卡")), 
	                        React.createElement("li", null, React.createElement("a", {href: this.state.data.InvestInfoUrl, className: this.state.data.Current == "InvestInfo" ? "current": ""}, " ", React.createElement("i", {className: "icon-personal iconfont"}), "个人信息")), 
	                        React.createElement("li", null, React.createElement("a", {href: this.state.data.InvestMessageUrl, className: this.state.data.Current == "InvestMessage" ? "current": ""}, " ", React.createElement("i", {className: "icon-news iconfont"}), "消息中心", this.state.data.IsNew ? React.createElement("b", null) : ''))
	                    )
	                ), 
	                React.createElement("div", {className: "qrcode"}, 
	                    React.createElement("p", {className: "ss"}, "扫一扫，立马赚钱", React.createElement("b", {className: "bg-icon"})), 
	                    React.createElement("img", {src: "../content/images/qrcode.jpg", alt: ""})
	                )
	            )
	        )
	    }
	})

	module.exports = RealName;

/***/ },

/***/ 2:
/***/ function(module, exports) {

	/**
	 *
	 * @constructs
	 */
	var Tooltip = React.createClass({displayName: "Tooltip",
	    _addEventListener:function(obj,ev,fn){
			obj.addEventListener ? obj.addEventListener(ev,fn,false) : obj.attachEvent("on" + ev,fn)
	    },
	    _removeEventListener: function (obj, ev, fn) {
	        obj.removeEventListener ? obj.removeEventListener(ev, fn, false) : obj.detachEvent("on" + ev, fn)
	    },
		getDefaultProps: function() {
			return {
				container: document.body,
				position: 'top',
				fixed: true,
				space: 5
			}
		},
		componentDidMount: function() {
			this.container = this.props.container || document.body;
			this.componentEl = this.refs.tooltipbox;
			this.tooltipEl = document.createElement('div');

			var tooltipArrowEl = document.createElement('div');
			tooltipArrowEl.className = 'ucs-tooltip-arrow';

			var tooltipContentEl = document.createElement('div');
			tooltipContentEl.className = 'ucs-tooltip-inner';
			tooltipContentEl.innerHTML = this.props.title;

			this.tooltipEl.appendChild(tooltipArrowEl);
			this.tooltipEl.appendChild(tooltipContentEl);
			this.tooltipEl.className = 'ucs-tooltip ' + this.props.position;
			this.container.appendChild(this.tooltipEl);
			this.resetTooltip();
			var _componentEl =  this.componentEl;
			this._addEventListener(_componentEl, this.props.fixed ? 'mouseenter' : 'mousemove', this.handleMouseMove.bind(this));
			this._addEventListener(_componentEl, 'mouseleave', this.handleMouseOut.bind(this));
		},

		resetTooltip: function() {
			this.tooltipEl.style.left = '-500px';
			this.tooltipEl.style.top = '-500px';
			this.tooltipEl.style.visibility = "hidden";
		},

		handleMouseMove: function(e) {
			if(!this.props.title) {
				return;
			}

			var tooltipPosition = this.getTooltipPosition(e);
			var tooltipOffset = this.getTooltipOffset();

			this.tooltipEl.style.left = tooltipPosition.x + tooltipOffset.x + 'px';
			this.tooltipEl.style.top = tooltipPosition.y + tooltipOffset.y + 'px';
			this.tooltipEl.style.visibility = "visible";
		},

		handleMouseOut: function() {
			this.resetTooltip();
		},
		//定位到标签的位置
		getTooltipPosition: function(e) {
			var pointX;
			var pointY;
			var bodyRect = document.body.getBoundingClientRect();
			var containerRect = this.container.getBoundingClientRect();
			var containerOffsetX = containerRect.left - bodyRect.left;
			var containerOffsetY = containerRect.top - bodyRect.top;
			if(this.props.fixed) {
				var componentRect = this.componentEl.getBoundingClientRect();
				var componentOffsetX = componentRect.left - containerOffsetX;
				var componentOffsetY = componentRect.top - containerOffsetY;
				var componentWidth = this.componentEl.offsetWidth;
				var componentHeight = this.componentEl.offsetHeight;
				var cOffsetX = 0;
				var cOffsetY = 0;
				switch(this.props.position) {
					case 'top':
						cOffsetX = componentWidth / 2;
						cOffsetY = 0;
						break;
					case 'right':
						cOffsetX = componentWidth;
						cOffsetY = componentHeight / 2;
						break;
					case 'bottom':
						cOffsetX = componentWidth / 2;
						cOffsetY = componentHeight;
						break;
					case 'left':
						cOffsetX = 0;
						cOffsetY = componentHeight / 2;
						break;
				}
				pointX = componentOffsetX + cOffsetX + (window.scrollX || window.pageXOffset || document.documentElement.scrollLeft || 0);
				pointY = componentOffsetY + cOffsetY + (window.scrollY || window.pageYOffset || document.documentElement.scrollTop || 0);
			} else {
				var clientX = e.clientX;
				var clientY = e.clientY;
				pointX = clientX - containerOffsetX + (window.scrollX || window.pageXOffset || document.documentElement.scrollLeft || 0);
				pointY = clientY - containerOffsetY + (window.scrollY || window.pageYOffset || document.documentElement.scrollTop || 0);
			}
			return {
				x: pointX,
				y: pointY
			};
		},
		//获取偏移量
		getTooltipOffset: function() {
			var tooltipW = this.tooltipEl.offsetWidth;
			var tooltipH = this.tooltipEl.offsetHeight;
			var offsetX = 0;
			var offsetY = 0;
			switch(this.props.position) {
				case 'top':
					offsetX = -(tooltipW / 2);
					offsetY = -(tooltipH + Number(this.props.space));
					break;
				case 'right':
					offsetX = Number(this.props.space);
					offsetY = -(tooltipH / 2);
					break;
				case 'bottom':
					offsetX = -(tooltipW / 2);
					offsetY = Number(this.props.space);
					break;
				case 'left':
					offsetX = -(tooltipW + Number(this.props.space));
					offsetY = -(tooltipH / 2);
					break;
			}
			return {
				x: offsetX,
				y: offsetY
			};
		},
		render: function() {
			return (
			    React.createElement("div", {ref: "tooltipbox", className: this.props.className?("ucs-tooltip-wrap "+this.props.className):"ucs-tooltip-wrap"}, this.props.children)
	        )
		}
	});

	module.exports = Tooltip;

/***/ },

/***/ 26:
/***/ function(module, exports) {

	/**
	 * Created by Administrator on 2017/4/11.
	 */
	var Pagination = React.createClass({displayName: "Pagination",
	    getDefaultProps: function () {
	      return {
	          pageVal:{}
	      }
	    },
	    getInitialState: function () {
	        return{
	            curPage:this.props.pageVal.curPage
	        }
	    },
	    onClick: function (curPage) {
	        this.setState({curPage:curPage});
	        this.props.onClick && this.props.onClick(curPage);
	    },
	    render: function(){
	        var _this = this;
	        var pageVal = _this.props.pageVal;
	        var curPage = _this.state.curPage;
	        var div = [];
	        if(pageVal.totalPage > 1 && pageVal.totalPage <= 7){
	            for(var i = 0; i <= pageVal.totalPage+1; i++){
	                var a = document.createElement("a");
	                a.setAttribute("href","javascript:;");
	                if(i==0){
	                    a.innerHTML = "&lt;";
	                    if(curPage > 1){
	                        a.onclick = function(){
	                            _this.onClick(curPage-1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else if(i == pageVal.totalPage+1){
	                    a.innerHTML = "&gt;";
	                    if(curPage < pageVal.totalPage){
	                        a.onclick = function(){
	                            _this.onClick(curPage+1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else{
	                    a.innerHTML = i;
	                    (function(ii){
	                        a.onclick = function(){
	                            _this.onClick(ii);
	                        };
	                    })(i);
	                    if(i == curPage){
	                        a.className = "current";
	                    }
	                }
	                div.push(a);
	            }
	        }else if(pageVal.totalPage > 7){
	            var dotIndex = 0;
	            if(curPage<=5 || (pageVal.totalPage - curPage) <= 4 ){
	                if((curPage - 1) < (pageVal.totalPage - curPage)){
	                    dotIndex = 6;
	                }else{
	                    dotIndex = 2;
	                }
	            }
	            for(var i = 0; i < 9; i++){
	                var a = document.createElement("a");
	                a.setAttribute("href","javascript:;");
	                if(i==0){
	                    a.innerHTML = "&lt;";
	                    if(curPage > 1){
	                        a.onclick = function(){
	                            _this.onClick(curPage-1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else if(i == 8){
	                    a.innerHTML = "&gt;";
	                    if(curPage < pageVal.totalPage){
	                        a.onclick = function(){
	                            _this.onClick(curPage+1);
	                        };
	                    }else{
	                        a.className = "pagination-disabled";
	                    }
	                }else{
	                    if(dotIndex == 0){
	                        if(i == 2 || i == 6){
	                            if(i == 2){
	                                a.onclick = function(){
	                                    _this.onClick(curPage-3);
	                                };
	                                a.className = "jump-prev";
	                                a.setAttribute("title","Previous 3 Pages");
	                            }else if(i == 6){
	                                a.onclick = function(){
	                                    _this.onClick(curPage+3);
	                                };
	                                a.className = "jump-next";
	                                a.setAttribute("title","Next 3 Pages");
	                            }
	                        }else{
	                            if(i == 1){
	                                a.innerHTML = 1;
	                                a.onclick = function(){
	                                    _this.onClick(1);
	                                };
	                            }else if(i == 7){
	                                a.innerHTML = pageVal.totalPage;
	                                a.onclick = function(){
	                                    _this.onClick(pageVal.totalPage);
	                                };
	                            }else if(i == 3){
	                                a.innerHTML = curPage-1;
	                                a.onclick = function(){
	                                    _this.onClick(curPage-1);
	                                };
	                            }else if(i == 4){
	                                a.innerHTML = curPage;
	                                a.onclick = function(){
	                                    _this.onClick(curPage);
	                                };
	                                a.className = "current";
	                            }else if(i == 5){
	                                a.innerHTML = curPage+1;
	                                a.onclick = function(){
	                                    _this.onClick(curPage+1);
	                                };
	                            }
	                        }
	                    }else if(dotIndex == 2){
	                        if(i == dotIndex){
	                            a.onclick = function(){
	                                _this.onClick(curPage-3);
	                            };
	                            a.className = "jump-prev";
	                            a.setAttribute("title","Previous 3 Pages");
	                        }else{
	                            if(i == 1){
	                                a.innerHTML = 1;
	                                a.onclick = function(){
	                                    _this.onClick(1);
	                                };
	                            }else{
	                                a.innerHTML = (pageVal.totalPage-(7-i));
	                                (function(i){
	                                    a.onclick = function(){
	                                        _this.onClick(pageVal.totalPage-(7-i));
	                                    };
	                                })(i);
	                            }
	                        }
	                        if((pageVal.totalPage-(7-i)) == curPage){
	                            a.className = "current";
	                        }
	                    }else if(dotIndex == 6){
	                        if(i == dotIndex){
	                            a.onclick = function(){
	                                _this.onClick(curPage+3);
	                            };
	                            a.className = "jump-next";
	                            a.setAttribute("title","Next 3 Pages");
	                        }else{
	                            if(i == 7){
	                                a.innerHTML = pageVal.totalPage;
	                                a.onclick = function(){
	                                    _this.onClick(pageVal.totalPage);
	                                };
	                            }else{
	                                a.innerHTML = i;
	                                (function(i){
	                                    a.onclick = function(){
	                                        _this.onClick(i);
	                                    };
	                                })(i);
	                            }
	                        }
	                        if(i == curPage){
	                            a.className = "current";
	                        }
	                    }
	                }
	                div.push(a);
	            }
	        }
	        return (
	            React.createElement("div", {className: "pagination"}, 
	                div
	            )
	        )
	    }
	});

	module.exports = Pagination;

/***/ },

/***/ 33:
/***/ function(module, exports) {

	/**
	 * 
	 * @constructs 
	 */
	var Progress = React.createClass({displayName: "Progress",
	    getDefaultProps: function() {
	        return {
	            type: 'line',
	            showInfo: true,
	            percent: 0
	        };
	    },
	    render: function(){
	        var showInfo = this.props.showInfo;
	        var info;
	        var infoPos = this.props.infoPosition;
	        var textProps = {};

	        if(showInfo){
	            if(infoPos){
	                typeof (infoPos) == 'object'? (
	                    textProps.style = infoPos
	                ):(
	                    textProps.style = {left:+this.props.percent + "%"}
	                )
	            }
	            textProps.className = 'ucs-progress-text';
	            if("format" in this.props){
	                info = React.createElement("span", {className: textProps.className, style: textProps.style}, this.props.format);
	            }else{
	                info = React.createElement("span", {className: textProps.className, style: textProps.style}, this.props.percent, "%");
	            }
	        }
	        var pClass = this.props.className? 'ucs-progress '+this.props.className:'ucs-progress';
	        return (
	            React.createElement("div", {className: pClass}, 
	                React.createElement("div", {className: "ucs-progress-inner"}, 
	                    React.createElement("span", {className: "ucs-progress-bg", style: {width:+this.props.percent + "%"}})
	                ), 
	                info
	            )
	        )
	    }
	});

	module.exports = Progress;

/***/ },

/***/ 34:
/***/ function(module, exports) {

	/*
	 * Created by Administrator on 2017/3/31.
	 */

	var AccountMes = React.createClass({displayName: "AccountMes",
	    getDefaultProps: function() {
	        return{
	            AccType:0

	        }
	    },
	    componentDidMount:function(){

	    },
	    render: function () {
	        if(!this.props.AccType){
	            var UncollectedIncome = Number(this.props.UncollectedIncome), _moreOver = false;
	            if(UncollectedIncome < 10000){
	                UncollectedIncome = UFormatter.formatMoney(UncollectedIncome,2);
	            }else{
	                UncollectedIncome = UFormatter.formatMoney(UncollectedIncome / 10000,2);
	                _moreOver = true;
	            }
	            return(
	                React.createElement("ul", {className: "clearfix"}, 
	                    React.createElement("li", null, React.createElement("span", {className: "span fc-main"}, React.createElement("strong", null, UFormatter.formatMoney(Number(this.props.UncollectedPrincipal),2)), "元"), React.createElement("p", {className: "fc-light"}, " 待回收收益")), 
	                    React.createElement("li", null, React.createElement("span", {className: "span fc-dark"}, React.createElement("strong", null, UncollectedIncome), _moreOver?"万元":"元"), React.createElement("p", {className: "fc-light"}, " 待回收本金")), 
	                    React.createElement("li", null, React.createElement("span", {className: "span fc-dark"}, React.createElement("strong", null, UFormatter.formatMoney(Number(this.props.TotalIncome),2)), "元"), React.createElement("p", {className: "fc-light"}, " 账户累计收益"))
	                )
	            )
	        }else {
	            var UncollectedPrincipal = Number(this.props.UncollectedPrincipal), _moreOver = false;
	            if(UncollectedPrincipal < 10000){
	                UncollectedPrincipal = UFormatter.formatMoney(UncollectedPrincipal,2);
	            }else{
	                UncollectedPrincipal = UFormatter.formatMoney(UncollectedPrincipal / 10000,2);
	                _moreOver = true;
	            }
	            return(
	                React.createElement("ul", {className: "clearfix"}, 
	                    React.createElement("li", null, React.createElement("span", {className: "span fc-main"}, React.createElement("strong", null, UncollectedPrincipal), _moreOver?"万元":"元"), React.createElement("p", {className: "fc-light"}, " 成功融资总额")), 
	                    React.createElement("li", null, React.createElement("span", {className: "span fc-dark"}, React.createElement("strong", null, UFormatter.formatMoney(Number(this.props.UncollectedIncome),2)), "元"), React.createElement("p", {className: "fc-light"}, " 待还本息")), 
	                    React.createElement("li", null, React.createElement("span", {className: "span fc-dark"}, React.createElement("strong", null, UFormatter.formatMoney(Number(this.props.TotalIncome),2)), "元"), React.createElement("p", {className: "fc-light"}, " 已还本息"))
	                )
	            )
	        }


	    }
	})

	module.exports = AccountMes;

/***/ },

/***/ 35:
/***/ function(module, exports, __webpack_require__) {

	/*
	 * Created by Administrator on 2017/3/31.
	 */
	var Progress = __webpack_require__(36);
	var FinanceRecord = React.createClass({displayName: "FinanceRecord",
	    getDefaultProps: function () {
	        return {
	            data: []

	        }
	    },
	    getInitialState:function () {
	        return {
	            data:this.props.data
	        }
	    },
	    componentDidMount: function () {

	    },
	    render: function () {
	        return (
	            React.createElement("div", null, 
	                this.state.data.map(function (item, index) {
	                    var financeStatusText = '';
	                    var detailUrl = 'javascript:void(0)'
	                    var F_Status = Number(item.F_Status);
	                    switch (F_Status) {
	                        case 1:
	                            financeStatusText = '还款中';
	                            detailUrl = item.FinancingUrl;
	                            break;
	                        case 2:
	                            financeStatusText = '还款完成';
	                            detailUrl = item.FinancingUrl;
	                            break;
	                        case 3:
	                            financeStatusText = '融资完成';
	                            detailUrl = item.ProjectUrl;
	                            break;
	                        case 4:
	                            financeStatusText = '投标中';
	                            detailUrl = item.ProjectUrl;
	                            break;
	                        case 5:
	                            financeStatusText = '预热中';
	                            detailUrl = item.ProjectUrl;
	                            break;
	                        case 6:
	                            financeStatusText = '项目流标';
	                            break;
	                    }
	                    var Amount = Number(item.Amount),_moreOver = false;
	                    if(Amount < 10000){
	                        Amount = UFormatter.formatMoney(Amount, 2);
	                    }else{
	                        Amount = UFormatter.formatMoney(Amount / 10000, 2);
	                        _moreOver = true;
	                    }
	                    return (
	                        React.createElement("div", {className: "item"}, 
	                            React.createElement("h3", null, item.ProjectName, 
	                                React.createElement("span", {className: "tag "+((F_Status == 1 || F_Status == 2 || F_Status == 3) ? "tag-red" : (F_Status == 6 ? "tag-grey" : "tag-yellow" ))}, financeStatusText)
	                            ), 
	                            React.createElement("ul", {className: "clearfix"}, 
	                                React.createElement("li", null, "融资金额：", React.createElement("b", null, Amount), _moreOver?"万元":"元"), 
	                                React.createElement("li", null, "融资利率：", React.createElement("b", null, item.FinanceRate), "%"), 
	                                React.createElement("li", null, "融资期限：", item.Duration, "天"), 
	                                React.createElement("li", null, "还款日期：", item.RepayBegin)
	                            ), 
	                            React.createElement("a", {href: detailUrl, className: "detail"}, "融资详情>>"), 
	                            React.createElement("div", {className: "progress-rate"}, 
	                                /*<p className="progress"><span>30%</span><b><i></i></b></p><p>1000元起投</p>*/
	                                React.createElement(Progress, {className: "progress", type: "line", percent: item.Progress})
	                            )
	                        )
	                    )
	                })
	            )
	        )
	    }
	})

	module.exports = FinanceRecord;

/***/ },

/***/ 36:
/***/ function(module, exports) {

	/**
	 * 
	 * @constructs 
	 */
	var Progress = React.createClass({displayName: "Progress",
	    getDefaultProps: function() {
	        return {
	            type: 'line',
	            showInfo: true,
	            percent: 0
	        };
	    },
	    render: function(){
	        var showInfo = this.props.showInfo;
	        var info;
	        var infoPos = this.props.infoPosition;
	        var textProps = {};

	        if(showInfo){
	            if(infoPos){
	                typeof (infoPos) == 'object'? (
	                    textProps.style = infoPos
	                ):(
	                    textProps.style = {left:+this.props.percent + "%"}
	                )
	            }
	            textProps.className = 'ucs-progress-text';
	            if("format" in this.props){
	                info = React.createElement("span", {className: textProps.className, style: textProps.style}, this.props.format);
	            }else{
	                info = React.createElement("span", {className: textProps.className, style: textProps.style}, this.props.percent, "%");
	            }
	        }
	        var pClass = this.props.className? 'ucs-progress '+this.props.className:'ucs-progress';
	        return (
	            React.createElement("div", {className: pClass}, 
	                React.createElement("div", {className: "ucs-progress-inner"}, 
	                    React.createElement("span", {className: "ucs-progress-bg", style: {width:+this.props.percent + "%"}})
	                ), 
	                info
	            )
	        )
	    }
	});

	module.exports = Progress;

/***/ }

/******/ });